//
//  TravelDeatilListDVC.m
//  VTravel
//
//  Created by lanouhn on 16/8/6.
//  Copyright © 2016年 xiaoYu. All rights reserved.
//

#import "TravelDeatilListDVC.h"

@interface TravelDeatilListDVC ()

@end

@implementation TravelDeatilListDVC

#pragma mark - 请求旅游详情界面数据
- (void)requestData{
    [NetWorkManager requestForGETWithURL:KTravelDetailURL paramater:@{@"city_id":city_id, @"pid":self.model.product_id,@"check":@"see"} success:^(id responseObject) {
        
        kMyLog(@"%@", responseObject);
        // 日期
        for (NSDictionary *dic in responseObject[@"loop_dates"]){
            /*
             "b_day" = 0,
             "adult" = 148,
             "members" = 300,
             "child_sell_price" = 70.00,
             "b_minute" = 0,
             "start_time" = 1440345600,
             "js_datetime" = 2015-08-24 23:59:59,
             "child" = 70,
             "b_hour" = 0,
             "mission_time" = 8:00,
             "order_members" = 0,
             "stock" = 300,
             "week" = 五,
             "sell_price" = 148.00,
             "date_time" = 2016-08-12,
             */
        }
        
        //
        for (NSDictionary *dic in responseObject[@"departure_info"]) {
            /*
             "info_id" = 14390,
             "product_id" = 20339,
             "f_place" = 紫荆山,
             "t_place" = ,
             "time" = 06:30,
             "remark" = 无,
             */
            
            
        }
        
        //
        for (NSDictionary *dic in responseObject[@"tj_products"]) {
            /*
             "zdy_tags" = (
             ),
             "f_country" = 0,
             "t_country" = 0,
             "product_sn" = c630677027633271,
             "product_name" = 尧山漂流+龙潭峡两日游,
             "wl_tags" = (
             {
             "tag_name" = 休闲度假,
             },
             {
             "tag_name" = 户外游,
             },
             {
             "tag_name" = 漂流,
             },
             ),
             "thumb" = http://img.weilv100.com//uploads/2015/06/26/579b84a366ee1027149320b33cffc52e.jpg,
             "adult_price" = 368.00,
             "route_type" = -11,
             "gj_adult_rebate" = 0.00,
             "picture" = ,
             "adult_rebate" = 0.00,
             "child_price" = 368.00,
             "album" = 426860,426863,426866,426869,,
             "schedule_days" = 2,
             "timetable_people" = 50,
             "t_city" = 150,
             "timetable_range" = 2016-04-28_2016-09-30,
             "t_province" = 11,
             "product_id" = 168218,
             "pay_way" = 1,
             "f_continent" = 0,
             "timetables" = (
             {
             "date_time" = 2016-08-08,
             },
             {
             "date_time" = 2016-08-09,
             }, 
             {	
             "date_time" = 2016-08-10,
             }, 
             {	
             "date_time" = 2016-08-11,
             }, 
             {	
             "date_time" = 2016-08-12,
             }, 
             {	
             "date_time" = 2016-08-13,
             }, 
             ),
             "t_continent" = 0,
             "timetable" = {"type":"day","value":1},
             "f_province" = 11,
             "belongs" = 3,
             "lastest" = 2016/08/08,
             "f_city" = 150,
             "travel_tag" = 休闲度假,户外游,漂流,
             "city_id" = 149,
             "child_rebate" = 0.00,
             "parent_pay_way" = 1,
             }, 

             */
        }
        
        //
        for (NSDictionary *dic in  responseObject[@"albums"]) {
            /*
             {
             "picture" = http://img.weilv100.com//uploads/2015/05/15/e2439546b25cde37e21b77aa4a1bb948.jpg,
             "album_id" = 29887,
             }, 

             */
        }
        // notice
        
        
    } fail:^(NSError *error) {
        
    }];
}
#pragma mark - 视图加载完成
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = kRandomColor;
    
    self.title = @"产品详情";
    
    [self requestData];
    
    


}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
